package com.eos.cto;

import java.util.Objects;
import java.util.Set;

/**
 * 自动发布对象
 * @author guosc
 * @Email guosc@gillion.com.cn
 * @date 2022/9/6
 * @time 10:57
 * @description:
 */
class DeployVersion {
    private String versionName;
    private String commitId;
    private String branch;
    private String moduleCode;
    private Set<String> issueNumbers;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DeployVersion that = (DeployVersion) o;
        return Objects.equals(versionName, that.versionName) && Objects.equals(commitId, that.commitId) && Objects.equals(branch, that.branch) && Objects.equals(moduleCode, that.moduleCode) && Objects.equals(issueNumbers, that.issueNumbers);
    }

    @Override
    public int hashCode() {
        return Objects.hash(versionName, commitId, branch, moduleCode, issueNumbers);
    }

    @Override
    public String toString() {
        return "DeployVersion{" +
                "versionName='" + versionName + '\'' +
                ", commitId='" + commitId + '\'' +
                ", branch='" + branch + '\'' +
                ", moduleCode='" + moduleCode + '\'' +
                ", issueNumbers=" + issueNumbers +
                '}';
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public String getCommitId() {
        return commitId;
    }

    public void setCommitId(String commitId) {
        this.commitId = commitId;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public Set<String> getIssueNumbers() {
        return issueNumbers;
    }

    public void setIssueNumbers(Set<String> issueNumbers) {
        this.issueNumbers = issueNumbers;
    }
}
